﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pipes.Queries.Model.Pattern
{
  public class Capture: IMatch
  {
    private Repetition _repeat = new Repetition();

    public Repetition  Repeat
    {
	    get 
      { 
        return _repeat; 
      }
    }
    public PatternOpts Opts { get; set; }

    public override string ToString()
    {
      return "(" + this.Opts.ToString() + ")" + _repeat.ToString();
    }

    public void Visit(Parser.IPatternVisitor visitor)
    {
      visitor.Visit(this);
    }
    public bool ContentEquals(IMatch value)
    {
      return false;
    }
  }
}
